const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  configureWebpack: (config) => {
    config.resolve = {
      alias: {
        '@': path.resolve(__dirname, './src'),
        '@public': path.resolve(__dirname, './public')
      }
    }
  },
  devServer:{
    host:'127.0.0.1',
    port:8080,
    open:true,
    proxy:{
      '/api':{
        target:'http://yun88.top:3000/',
        changeOrigin:true,
        pathRewrite:{
          '^/api':'/api'
        }
      }
    }
  }
})
